import Vue from 'vue'
import VueRouter from 'vue-router'
import index from '../views/index.vue'
import add from '../views/add.vue'
import edit from '../views/edit.vue'

Vue.use(VueRouter)

const routes = [
  {
	  path:'/',
	  redirect:'index'
  },
  {
    path: '/index',
    component: index
  },
  {
	  path:'/add',
	  component: add
  },
  {
  	  path:'/edit',
  	  component: edit
  }

]

const router = new VueRouter({
  routes
})

export default router
